home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / grafik / pine / pt550v / win_nt / oemsetup.inf < prev    next >
INI File  |  1995-06-16  |  27KB  |  613 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3. [Identify]
  4.     read-syms Identification
  5.     set Status     = STATUS_SUCCESSFUL
  6.     set Identifier = $(OptionType)
  7.     set Media      = #("Source Media Descriptions", 1, 1)
  8.     Return $(Status) $(Identifier) $(Media)
  9. [ServicesEntry]
  10.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  11. [SystemVariables]
  12.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  13.     STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
  14. [MiniportDrivers]
  15.     ali35    = ali35   , !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, {vga,vga256,vga64k} , 1, "%SystemRoot%\System32\IoLogMsg.dll"                                         , 7
  16.  
  17. [OpenGLDrivers]
  18. [ExternalInstallOption]
  19.     Set !G:DebugOutputControl = 0
  20.     set Exit_Code   = $(!SETUP_ERROR_GENERAL)
  21.     install LoadSetupLibrary
  22.     ifstr(i)      $(STF_LANGUAGE)  == ""
  23.         goto end
  24.     else-ifstr(i) $(OPTION)        == ""
  25.         goto end
  26.     else-ifstr(i) $(INITSRC)       == ""
  27.         goto end
  28.     else-ifstr(i) $(ADDCOPY)       == ""
  29.         goto end
  30.     else-ifstr(i) $(DOCOPY)        == ""
  31.         goto end
  32.     else-ifstr(i) $(DOCONFIG)      == ""
  33.         goto end
  34.     else-ifstr(i) $(DOINSTALL)     == ""
  35.         goto end
  36.     else-ifstr(i) $(INFFILE)       == ""
  37.         goto end
  38.     endif
  39.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  40.     set STF_CONTROLSET = CurrentControlSet
  41.     read-syms SystemVariables
  42.     detect    SystemVariables
  43.     shell $(INFFILE) InstallOption $(STF_LANGUAGE) $(OPTION) $(INITSRC) $(ADDCOPY) $(DOCOPY) $(DOCONFIG) $(DOINSTALL)
  44.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  45.         Debug-Output "Execing Configuring hardware failed"
  46.         goto end
  47.     endif
  48.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  49.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  50.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  51.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  52.     endif
  53. end =+
  54.     install   FreeSetupLibrary
  55.     FreeLibrary $(!LIBHANDLE)
  56.     exit
  57. [InstallOption]
  58.     set Status       = STATUS_FAILED
  59.     set DrivesToFree = {}
  60.     set Option    = $($1)
  61.     set SrcDir    = $($2)
  62.     set AddCopy   = $($3)
  63.     set DoCopy    = $($4)
  64.     set DoConfig  = $($5)
  65.     set DoInstall = $($6)
  66.     set LanguageList = ^(LanguagesSupported, 1)
  67.     Ifcontains(i) $($0) in $(LanguageList)
  68.     else
  69.         set Status = STATUS_NOLANGUAGE
  70.         goto finish_InstallOption
  71.     endif
  72.     read-syms Strings$($0)
  73.     ifstr(i) $(Option) != "DETECT"
  74.         set OptionList = ^(Options, 0)
  75.         ifcontains $(Option) in $(OptionList)
  76.         else
  77.             goto finish_InstallOption
  78.         endif
  79.         set OptionList = ""
  80.         set DriverEntry       =   #(Options, $(Option), 1)
  81.         set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  82.         set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  83.     endif
  84.     read-syms ServicesEntry
  85.     detect    ServicesEntry
  86.     set DriversList        = ^(MiniportDrivers, 0)
  87.     set MiniportDriverList = ^(Files-DisplayMiniportDrivers, 0)
  88.     set DisplayDriverList  = ^(Files-DisplayDLLs, 0)
  89.     set OpenGLDriverList   = ^(OpenGLDrivers, 0)
  90. installtheoption = +
  91.     ifstr(i) $(AddCopy) == "YES"
  92.         ifstr(i) $(Option) == "DETECT"
  93.             set DoActualCopy = YES
  94.         else
  95.             set DoActualCopy = NO
  96.             set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  97.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  98.             ifstr(i) $(STATUS) == NO
  99.                 set DoActualCopy = YES
  100.                 goto addfiles
  101.             endif
  102.             ForListDo $(InstalledDisplays)
  103.                 ifcontains $($) in $(DisplayDriverList)
  104.                     set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  105.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  106.                     ifstr(i) $(STATUS) == NO
  107.                         set DoActualCopy = YES
  108.                         goto addfiles
  109.                     endif
  110.                     ifcontains $($) in $(OpenGLDriverList)
  111.                         set FileToCheck = #(Files-DisplayOpenGLDrivers, #(OpenGLDrivers, $($), 1), 2)
  112.                         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  113.                         ifstr(i) $(STATUS) == NO
  114.                             set DoActualCopy = YES
  115.                             goto addfiles
  116.                         endif
  117.                     endif
  118.                 endif
  119.             EndForListDo
  120.         endif
  121. addfiles = +
  122.         ifstr(i) $(DoActualCopy) == NO
  123.             shell "subroutn.inf" DriversExist $($0) $(String1)
  124.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  125.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  126.                 goto finish_InstallOption
  127.             endif
  128.             ifstr(i) $($R0) == STATUS_CURRENT
  129.             else-ifstr(i) $($R0) == STATUS_NEW
  130.                 set DoActualCopy = YES
  131.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  132.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  133.                 goto finish_InstallOption
  134.             else
  135.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  136.                 goto finish_InstallOption
  137.             endif
  138.         endif
  139.         ifstr(i) $(DoActualCopy) == YES
  140.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  141.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  142.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  143.                 goto finish_InstallOption
  144.             endif
  145.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  146.                 set SrcDir = $($R1)
  147.                 ifstr(i) $($R2) != ""
  148.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  149.                 endif
  150.             else
  151.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  152.                 goto finish_InstallOption
  153.             endif
  154.             ifstr(i) $(Option) != "DETECT"
  155.                 install Install-AddCopyOption
  156.             else
  157.                 install Install-AddAllCopy
  158.             endif
  159.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  160.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  161.                 goto finish_InstallOption
  162.             endif
  163.         else
  164.             set DoCopy = NO
  165.         endif
  166.     endif
  167.     ifstr(i) $(DoCopy) == "YES"
  168.         read-syms ProgressCopy$($0)
  169.         install Install-DoCopyOption
  170.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  171.             Debug-Output "Copying files failed"
  172.             goto finish_InstallOption
  173.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  174.             set Status = STATUS_USERCANCEL
  175.             goto finish_InstallOption
  176.         endif
  177.     endif
  178.     ifstr(i) $(DoConfig) == "YES"
  179.         shell "registry.inf" CheckSetupModify
  180.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  181.             goto finish_InstallOption
  182.         endif
  183.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  184.             goto finish_InstallOption
  185.         endif
  186.         ForListDo $(DriversList)
  187.             ifstr(i) $(Option) == "DETECT"
  188.                 set DriverEntry = $($)
  189.                 set DeviceDescription = ""
  190.                 ifcontains #(MiniportDrivers, $(DriverEntry), 1) in $(MiniportDriverList)
  191.                     set configDriver = YES
  192.                 else
  193.                     set configDriver = NO
  194.                 endif
  195.             else
  196.                 set DeviceDescription = $(Option)
  197.                 ifstr(i) $(DriverEntry) == $($)
  198.                     set configDriver = YES
  199.                 else
  200.                     set configDriver = NO
  201.                 endif
  202.             endif
  203.             ifstr(i) $(configDriver) == YES
  204.                 Debug-Output "configuring the miniport driver"
  205.                 set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  206.                 set Type              = $(#(MiniportDrivers, $(DriverEntry), 2))
  207.                 set Group             =   #(MiniportDrivers, $(DriverEntry), 3)
  208.                 set ErrorControl      = $(#(MiniportDrivers, $(DriverEntry), 4))
  209.                 set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  210.                 set VgaCompatible     =   #(MiniportDrivers, $(DriverEntry), 6)
  211.                 set EventMessageFile  =   #(MiniportDrivers, $(DriverEntry), 7)
  212.                 set TypesSupported    =   #(MiniportDrivers, $(DriverEntry), 8)
  213.                 set ServiceNode   = $(DriverEntry)
  214.                 set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  215.                 set ServicesValues   = { +
  216.                         {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  217.                         {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  218.                         {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  219.                         {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  220.                         }
  221.                 ifstr(i) $(DoInstall) == "YES"
  222.                     set ServicesValues = >($(ServicesValues), +
  223.                         {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) })
  224.                 else
  225.                     set ServicesValues = >($(ServicesValues), +
  226.                         {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_DISABLED)     })
  227.                 endif
  228.                 set ParametersValues = { +
  229.                         {"Device Description",    0, $(!REG_VT_SZ),       $(DeviceDescription) }, +
  230.                         {InstalledDisplayDrivers, 0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  231.                         {VgaCompatible,           0, $(!REG_VT_DWORD),    $(VgaCompatible)     }  +
  232.                         }
  233.                 ifstr(i) $(Option) == "ATI AST"
  234.                     set ParametersValues = >($(ParametersValues), +
  235.                         {"ATIOEM",                0, $(!REG_VT_SZ),       "AST"                })
  236.                 endif
  237.                 set DeviceValues     = {}
  238.                 set EventLogValues   = { +
  239.                         {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  240.                         {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  241.                         }
  242.                 shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  243.                                                         $(ServicesValues)   +
  244.                                                         $(ParametersValues) +
  245.                                                         $(DeviceValues)     +
  246.                                                         $(EventLogValues)   +
  247.                                                         Device0
  248.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  249.                     Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  250.                     goto finish_InstallOption
  251.                 endif
  252.                 ifstr(i) $($R0) != STATUS_SUCCESSFUL
  253.                     Debug-Output "MakeServicesEntry failed for video"
  254.                     goto finish_InstallOption
  255.                 endif
  256.                 ForListDo $(InstalledDisplays)
  257.                     ifcontains $($) in $(OpenGLDriverList)
  258.                         set KeyPath   = { +
  259.                                          {SOFTWARE,       0, $(MaskAllAccess)}, +
  260.                                          {Microsoft,      0, $(MaskAllAccess)}, +
  261.                                          {"Windows NT",   0, $(MaskAllAccess)}, +
  262.                                          {CurrentVersion, 0, $(MaskAllAccess)}, +
  263.                                          {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  264.                                         }
  265.                         set KeyValue  = { +
  266.                                          {$($), 0, $(!REG_VT_SZ), #(OpenGLDrivers, $($), 1) } +
  267.                                         }
  268.                         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  269.                         Debug-Output "just did an OGL section"
  270.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  271.                             Debug-Output "Couldn't execute CreateKey in registry.inf"
  272.                             goto endInstallOpenGLDriver
  273.                         endif
  274.                         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  275.                             Debug-Output "CreateKey failed for OGLDrivers"
  276.                             goto endInstallOpenGLDriver
  277.                         endif
  278.                         Debug-Output "VIDEO.INF: success installing an ogl entry"
  279.                     endif
  280.                 EndForListDo
  281.             endif
  282.         EndForListDo
  283.     endif
  284.     set Status = STATUS_SUCCESSFUL
  285. finish_InstallOption = +
  286.     ForListDo $(DrivesToFree)
  287.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  288.     EndForListDo
  289.     Return $(Status)
  290. [Install-AddCopyOption]
  291.     Debug-Output "adding to copy list"
  292.     set STF_VITAL = ""
  293.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  294.                                   $(MiniportDriver)              +
  295.                                   $(SrcDir)                      +
  296.                                   $(!STF_WINDOWSSYSPATH)\drivers
  297.     ForListDo $(InstalledDisplays)
  298.         ifcontains $($) in $(DisplayDriverList)
  299.             Debug-Output "adding display driver to copy list"
  300.             AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  301.                                           $($)                       +
  302.                                           $(SrcDir)                  +
  303.                                           $(!STF_WINDOWSSYSPATH)
  304.             ifcontains $($) in $(OpenGLDriverList)
  305.                 Debug-Output "adding opengl driver to copy list"
  306.                 AddSectionKeyFileToCopyList   Files-DisplayOpenGLDrivers +
  307.                                               #(OpenGLDrivers, $($), 1)  +
  308.                                               $(SrcDir)                  +
  309.                                               $(!STF_WINDOWSSYSPATH)
  310.             endif
  311.         endif
  312.     EndForListDo
  313.     exit
  314. [Install-AddAllCopy]
  315.     Debug-Output "adding all drivers to copy list"
  316.     set STF_VITAL = ""
  317.     AddSectionFilesToCopyList  Files-DisplayMiniportDrivers   +
  318.                                $(SrcDir)                      +
  319.                                $(!STF_WINDOWSSYSPATH)\drivers
  320.     AddSectionFilesToCopyList  Files-DisplayDLLs            +
  321.                                $(SrcDir)                    +
  322.                                $(!STF_WINDOWSSYSPATH)
  323.     exit
  324. [Install-DoCopyOption]
  325.     CopyFilesInCopyList
  326.     exit
  327. [FontResources]
  328.     font96dpi  = 96,  {vgasys.fon,  vgafix.fon,  vgaoem.fon,  SSERIFE.FON, COURE.FON, SERIFE.FON, SYMBOLE.FON, SMALLE.FON}, vgasys.fon,  vgafix.fon,  vgaoem.fon,  SSERIFE.FON, COURE.FON, SERIFE.FON, SYMBOLE.FON, SMALLE.FON
  329.     font120dpi = 120, {8514sys.fon, 8514fix.fon, 8514oem.fon, SSERIFF.FON, COURF.FON, SERIFF.FON, SYMBOLF.FON, SMALLF.FON}, 8514sys.fon, 8514fix.fon, 8514oem.fon, SSERIFF.FON, COURF.FON, SERIFF.FON, SYMBOLF.FON, SMALLF.FON
  330. [ExternalFontInstallOption]
  331.     Set !G:DebugOutputControl = 1
  332.     set Exit_Code   = $(!SETUP_ERROR_GENERAL)
  333.     install LoadSetupLibrary
  334.     ifstr(i)      $(STF_LANGUAGE)  == ""
  335.         goto end
  336.     else-ifstr(i) $(OPTION)        == ""
  337.         goto end
  338.     else-ifstr(i) $(INITSRC)       == ""
  339.         goto end
  340.     else-ifstr(i) $(ADDCOPY)       == ""
  341.         goto end
  342.     else-ifstr(i) $(DOCOPY)        == ""
  343.         goto end
  344.     else-ifstr(i) $(DOCONFIG)      == ""
  345.         goto end
  346.     else-ifstr(i) $(INFFILE)       == ""
  347.         goto end
  348.     endif
  349.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  350.     set STF_CONTROLSET = CurrentControlSet
  351.     read-syms SystemVariables
  352.     detect    SystemVariables
  353.     shell $(INFFILE) FontInstallOption $(STF_LANGUAGE) $(OPTION) $(INITSRC) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  354.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  355.         Debug-Output "Execing Configuring hardware failed"
  356.         goto end
  357.     endif
  358.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  359.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  360.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  361.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  362.     endif
  363. end =+
  364.     install   FreeSetupLibrary
  365.     FreeLibrary $(!LIBHANDLE)
  366.     exit
  367. [FontInstallOption]
  368.     set Status       = STATUS_FAILED
  369.     set DrivesToFree = {}
  370.     set Option   = $($1)
  371.     set SrcDir   = $($2)
  372.     set AddCopy  = $($3)
  373.     set DoCopy   = $($4)
  374.     set DoConfig = $($5)
  375.     set LanguageList = ^(LanguagesSupported, 1)
  376.     Ifcontains(i) $($0) in $(LanguageList)
  377.     else
  378.         set Status = STATUS_NOLANGUAGE
  379.         goto endFontInstallOption
  380.     endif
  381.     read-syms Strings$($0)
  382.     set OptionList = ^(FontOptions, 0)
  383.     ifcontains $(Option) in $(OptionList)
  384.     else
  385.         goto endFontInstallation
  386.     endif
  387.     Debug-Output "about to install the font option"
  388.     set OptionList = ""
  389.     read-syms SystemVariables
  390.     detect    SystemVariables
  391.     set FontSelection     = #(FontOptions, $(Option), 1)
  392.     set LogPixels         = #(FontResources, $(FontSelection), 1)
  393.     set FontFileList      = #(FontResources, $(FontSelection), 2)
  394. installthefontoption = +
  395.     ifstr(i) $(AddCopy) == "YES"
  396.         set DoActualCopy = NO
  397.         ForListDo $(FontFileList)
  398.             set FileToCheck = $($)
  399.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSPATH)"\system\"$(FileToCheck)
  400.             ifstr(i) $(STATUS) == NO
  401.                 set DoActualCopy = YES
  402.             endif
  403.         EndForListDo
  404. addfontfiles = +
  405.         ifstr(i) $(DoActualCopy) == NO
  406.             shell "subroutn.inf" DriversExist $($0) $(String1)
  407.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  408.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  409.                 goto endFontInstallOption
  410.             endif
  411.             ifstr(i) $($R0) == STATUS_CURRENT
  412.             else-ifstr(i) $($R0) == STATUS_NEW
  413.                 set DoActualCopy = YES
  414.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  415.                 Debug-Output "VIDEO.INF: User cancelled font installation"
  416.                 goto endFontInstallOption
  417.             else
  418.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  419.                 goto endFontInstallOption
  420.             endif
  421.         endif
  422.         ifstr(i) $(DoActualCopy) == YES
  423.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  424.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  425.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  426.                 goto endFontInstallOption
  427.             endif
  428.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  429.                 set SrcDir = $($R1)
  430.                 ifstr(i) $($R2) != ""
  431.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  432.                 endif
  433.             else
  434.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  435.                 goto endFontInstallOption
  436.             endif
  437.             install InstallFont-AddCopyOption
  438.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  439.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  440.                 goto endFontInstallOption
  441.             endif
  442.         else
  443.             set DoCopy = NO
  444.         endif
  445.     endif
  446.     ifstr(i) $(DoCopy) == "YES"
  447.         read-syms ProgressCopy$($0)
  448.         install InstallFont-DoCopyOption
  449.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  450.             Debug-Output "Copying files failed"
  451.             goto endFontInstallOption
  452.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  453.             set Status = STATUS_USERCANCEL
  454.             goto endFontInstallOption
  455.         endif
  456.     endif
  457.     ifstr(i) $(DoConfig) == "YES"
  458.         shell "registry.inf" CheckSetupModify
  459.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  460.             goto endFontInstallOption
  461.         endif
  462.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  463.             goto endFontInstallOption
  464.         endif
  465.         set KeyPath   = { +
  466.                          {SOFTWARE,       0, $(MaskAllAccess)}, +
  467.                          {Microsoft,      0, $(MaskAllAccess)}, +
  468.                          {"Windows NT",   0, $(MaskAllAccess)}, +
  469.                          {CurrentVersion, 0, $(MaskAllAccess)}, +
  470.                          {GRE_Initialize, 0, $(MaskAllAccess)}  +
  471.                         }
  472.         set KeyValues = { +
  473.                          {FONTS.FON,      0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 3) }, +
  474.                          {FIXEDFON.FON,   0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 4) }, +
  475.                          {OEMFONT.FON,    0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 5) }  +
  476.                         }
  477.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValues)
  478.         Debug-Output "just did the GRE_Ini font section"
  479.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  480.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  481.             goto endFontInstallOption
  482.         endif
  483.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  484.             Debug-Output "CreateKey failed for GRE_Iinitialize"
  485.             goto endFontInstallOption
  486.         endif
  487.         set KeyPath   = { +
  488.                          {SOFTWARE,       0, $(MaskAllAccess)}, +
  489.                          {Microsoft,      0, $(MaskAllAccess)}, +
  490.                          {"Windows NT",   0, $(MaskAllAccess)}, +
  491.                          {CurrentVersion, 0, $(MaskAllAccess)}, +
  492.                          {Fonts,          0, $(MaskAllAccess)}  +
  493.                         }
  494.         set KeyValues = { +
  495.                          {"MS Sans Serif 8,10,12,14,18,24 (VGA res)", 0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 6 ) }, +
  496.                          {"Courier 10,12,15 (VGA res)",               0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 7 ) }, +
  497.                          {"MS Serif 8,10,12,14,18,24 (VGA res)",      0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 8 ) }, +
  498.                          {"Symbol 8,10,12,14,18,24 (VGA res)",        0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 9 ) }, +
  499.                          {"Small Fonts (VGA res)",                    0, $(!REG_VT_SZ), #(FontResources, $(FontSelection), 10) }  +
  500.                         }
  501.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValues)
  502.         Debug-Output "just did the second font section"
  503.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  504.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  505.             goto endFontInstallOption
  506.         endif
  507.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  508.             Debug-Output "CreateKey failed for Fonts"
  509.             goto endFontInstallOption
  510.         endif
  511.         set KeyPath   = { +
  512.                          {SOFTWARE,       0, $(MaskAllAccess)}, +
  513.                          {Microsoft,      0, $(MaskAllAccess)}, +
  514.                          {"Windows NT",   0, $(MaskAllAccess)}, +
  515.                          {CurrentVersion, 0, $(MaskAllAccess)}, +
  516.                          {FontDPI,        0, $(MaskAllAccess)}  +
  517.                         }
  518.         set KeyValues = { +
  519.                          {"LogPixels",  0, $(!REG_VT_DWORD), $(LogPixels) }  +
  520.                         }
  521.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValues)
  522.         Debug-Output "just did the second font section"
  523.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  524.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  525.             goto endFontInstallOption
  526.         endif
  527.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  528.             Debug-Output "CreateKey failed for FontSize"
  529.             goto endFontInstallOption
  530.         endif
  531.         goto configfontdone
  532. errorfontconfig = +
  533.         goto endFontInstallOption
  534. configfontdone = +
  535.     endif
  536.     set Status = STATUS_SUCCESSFUL
  537. endFontInstallOption = +
  538.     ForListDo $(DrivesToFree)
  539.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  540.     EndForListDo
  541.     Return $(Status)
  542. [InstallFont-AddCopyOption]
  543.     set STF_VITAL = ""
  544.     AddSectionFilesToCopyList  Files-DisplayFonts$(LogPixels) +
  545.                                $(SrcDir)                      +
  546.                                $(!STF_WINDOWSPATH)\system
  547.     exit
  548. [InstallFont-DoCopyOption]
  549.     CopyFilesInCopyList
  550.     exit
  551. [Source Media Descriptions]
  552.     1  = "OEM DISK (VIDEO)"  , TAGFILE = disk1
  553. [Signature]
  554.     FileType = MICROSOFT_FILE
  555. [ProductType]
  556. STF_PRODUCT  = Winnt
  557. STF_PLATFORM = I386
  558. [Files-DisplayDLLs]
  559. vga = 1,VGA.DLL , SIZE=194560
  560. vga256 = 1,VGA256.DLL , SIZE=143872
  561. vga64k = 1,VGA64K.DLL , SIZE=604162
  562. [Files-DisplayFonts120]
  563. 2,8514FIX.FON , SIZE=11264
  564. 2,8514OEM.FON , SIZE=12288
  565. 2,8514SYS.FON , SIZE=9728
  566. 2,COURF.FON , SIZE=31744
  567. 2,SERIFF.FON , SIZE=81920
  568. 2,SMALLF.FON , SIZE=21504
  569. 2,SSERIFF.FON , SIZE=90112
  570. 2,SYMBOLF.FON , SIZE=81408
  571. [Files-DisplayFonts96]
  572. 2,COURE.FON , SIZE=23552
  573. 2,SERIFE.FON , SIZE=58368
  574. 2,SMALLE.FON , SIZE=26112
  575. 2,SSERIFE.FON , SIZE=65024
  576. 2,SYMBOLE.FON , SIZE=56832
  577. 2,VGAFIX.FON , SIZE=5632
  578. 2,VGAOEM.FON , SIZE=5632
  579. 2,VGASYS.FON , SIZE=7680
  580. [Files-DisplayMiniportDrivers]
  581. vga = 2,VGA.SYS , SIZE=33280
  582. ali35 = 1,ali35.sys , SIZE=44128
  583. [LanguagesSupported]
  584.     ENG
  585. [Options]
  586.     "Avance 23xx/22xx"                    = ali35
  587. [FontOptions]
  588.     "Small"  = font96dpi
  589.     "Large"  = font120dpi
  590. [OptionsTextENG]
  591.     "Avance 23xx/22xx"                    = "Avance 23xx/22xx"
  592. [FontOptionsTextENG]
  593.     "Small"  = "Small Fonts"
  594.     "Large"  = "Large Fonts"
  595. [ProgressCopyENG]
  596.     ProCaption   = "Windows NT Setup"
  597.     ProCancel    = "Cancel"
  598.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  599.                    "to cancel copying files?"
  600.     ProCancelCap = "Setup Message"
  601.     ProText1     = "Copying:"
  602.     ProText2     = "To:"
  603. [StringsENG]
  604.     String1 = "Display"
  605.     String2 = "Please enter the full path to the Windows NT Display "+
  606.               "driver files.  If you want to install files from the "+
  607.               "original Setup floppy disks, type a drive letter (such "+
  608.               "as A:) and Setup will prompt you for the correct disk.  "+
  609.               "Then choose Continue."
  610.  
  611.  
  612.  
  613.